export default {
  namespace: 'flowTacheConfig',
  state: {
    reloadFlag: false, // 刷新环节拓展列表标记
    selectRecord: {},  // 环节列表选中数据
    selectCatalog: {},  // 环节树选中数据
  },

  effects: {},

  reducers: {
    saveSelectRecord(state, { payload: params }) {
      return {
        ...state,
        selectRecord: params,
      };
    },
    saveSelectCatalog(state, { payload: params }) {
      return {
        ...state,
        selectCatalog: params,
      };
    },
    saveReloadFlag(state, { payload: params }) {
      return {
        ...state,
        reloadFlag: params,
      };
    },
  },
};
